﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyOpenGame
{
    public class Ball : AModel, IDefenceAttack
    {
        public Ball(int row)
            : base(row)
        {
            GameUtility gameUtility = new GameUtility();
            _points = gameUtility.GetDefenderPointsForRow(row);
            _texture = Texture.getBall();
            _moveStep = 1;
            _lifePoints = 1000;
        }

        public void Destroy()
        {
            _lifePoints = 0;
        }

    }
}
